NDepend.API Documentation
EqualsAny<T>(T,T,T,T) Method
NDepend.Helpers Namespace > ExtensionMethodsMisc Class > EqualsAny Method : EqualsAny<T>(T,T,T,T) Method
The generic parameter value type of items.
this items.
First item to compare to.
Second item to compare to.
Third item to compare to.
Returns true if this item equals item1, item2 or item3.
Syntax
[Extension()]
public static bool EqualsAny<T>( 
   T item,
   T item1,
   T item2,
   T item3
)
where T: new(), struct

Parameters

item
this items.
item1
First item to compare to.
item2
Second item to compare to.
item3
Third item to compare to.

Type Parameters

T
The generic parameter value type of items.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsMisc Class
ExtensionMethodsMisc Members
Overload List